// /api/auto/login
import Taro from '@tarojs/taro'

export const onLogin = async (code: string) => {
  return Taro.cloud.callContainer({
    path: '/api/auth/login',
    header: {
      'X-WX-SERVICE': 'dshx-back-end',
    },
    method: 'POST',
    data: {
      wxToken: code,
    },
  })
}
